package com.baizhi.service.ServiceImpl;

import com.baizhi.annotation.LogAnnotation;
import com.baizhi.dao.AdminDao;
import com.baizhi.dao.PowerDtoDao;
import com.baizhi.dao.UserLogDao;
import com.baizhi.dto.PowerDto;
import com.baizhi.entity.Admin;
import com.baizhi.entity.UserLog;
import com.baizhi.service.AdminService;
import com.baizhi.service.PowerService;
import com.baizhi.util.RandomUtil;
import org.apache.shiro.crypto.hash.Md5Hash;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2019/4/3.
 */
@Service
public class PowerServiceImpl implements PowerService {
    @Autowired
    private PowerDtoDao powerDtoDao;

    @Override
    public List<PowerDto>  selectRoleTree(String roleName) {
        return powerDtoDao.selectPowerDaoTree(roleName);
    }
}
